Isolating Side E ects in Sequential
نویسندگان
چکیده
It is well known that adding side eeects to functional languages changes the operational equivalences of the language. We develop a new language construct, encap, that forces imperative pieces of code to behave purely functionally, i.e., without any visible side eeects. The coercion operator encap provides a means of extending the simple reasoning principles for equivalences of code in a functional language to a language with side eeects. In earlier work 36], similar coercion operators were developed, but their correctness required the underlying functional language to include parallel operations. The coercion operators developed here are simpler and are proven correct for purely sequential languages. The sequential setting requires the construction of fully abstract models for sequential call-by-value languages and the formulation of a weak form of \monad" suitable for expressing the semantics of call-by-value languages with side effects .
منابع مشابه
Identifying class size e ects in developing countries: Evidence from rural schools in Bolivia
Although great interest surrounds class size as a policy instrument, inferences on its e ects are controversial. Recent work highlights a particular way to consider the endogeneity issues that a ect this variable: class size is often correlated with enrollment, which may in turn be related to socioeconomic status. This paper shows that these correlations are signi cant in the case of Bolivia. I...
متن کاملTaming E ects with Monadic Typing 1
The familiar Hindley-Milner type system of the ML language family is extended with monad annotations to account for possible side e ects of expression evaluation. This also allows e ects to be e ectively encapsulated by lexical scopes, with enforcement provided by type checking. A type-and-e ects analysis supports type inference. Type soundness and completeness theorems establish the coherence ...
متن کاملPartial Evaluation of Call - by - value - calculus with Side - e ects
We present a framework of an online partial evaluator for a call-by-value -calculus with destructive updates of data structures. To our knowledge, this is the rst partial evaluator that can deal with full side-e ects as well as pointer equality in higher-order languages. Our partial evaluator uses a side-e ect analysis for handling assignment operations and then performs an online specializatio...
متن کامل? 1 2 1 2
Tiles are rewrite rules with side e ects, reminiscent of both Plotkin SOS and Meseguer rewriting logic rules. They are well suited for modeling coordination languages, since they can be composed both statically and dynamically via possibly complex synchronization and workow mechanisms. In this paper, we give a tile-based bisimilarity semantics for the asynchronous -calculus of Honda and Tokoro ...
متن کاملKISS--a new approach to self-controlled e-learning of selected chapters in Medical Engineering and other fields at bachelor and master course level.
Modern life style requires new methods for individual lifelong learning, based on access at every time and from every place. This fundamental requirement is provided by the Internet. The Internet technology promises an increasing potential in the future for e-learning or tele-learning. Some special requirements are password-controlled access, applicability of most commercially available PCs and...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1995